package com.pengxun.manager.dao.system;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.pengxun.manager.model.system.PermissionApi;
import com.pengxun.manager.vo.PermissionApiVO;

public interface PermissionApiDao {
   public int insert(PermissionApi permissionApi);
   public int batchInsert(List<PermissionApi> list);
   
   public int update(PermissionApi permissionApi);
   
   public int delete(@Param("id") Integer id);
   
   public List<PermissionApi> findByPage(PermissionApiVO permissionApiVO);
   
   public PermissionApi findById(@Param("id") Integer id);

   public List<PermissionApi> findByPermissionCode(@Param("permissionCode") String permissionCode);
   
   public int deleteByPermissionCode(@Param("permissionCode") String permissionCode);
   
}
